package com.newtouch.xcd.common.constants;

/**
 * 微信字典
 */
public interface WeixinDict {


    /**
     * 建筑垃圾实时预警通知
     */
    public enum Template1 implements BaseEnum {

        occurTime("occurTime", "时间"),
        address("address", "具体位置"),
        pointStatus("pointStatus", "内容详情"),
        volume("volume", "堆放点当前丢置垃圾总体积"),
        volumeChange("volumeChange", "本次丢置垃圾体积"),

        ;
        public String code;
        public String message;
        private Template1(String code, String message) {this.code = code;this.message = message;}
        public String getCode() {return code;}
        public String getMessage() {return message;}
    }

    /**
     * 建筑垃圾设备故障通知
     */
    public enum Template2 implements BaseEnum {

        address("address", "具体位置"),
        pointStatus("pointStatus", "内容详情"),

        ;
        public String code;
        public String message;
        private Template2(String code, String message) {this.code = code;this.message = message;}
        public String getCode() {return code;}
        public String getMessage() {return message;}
    }

    /**
     * 建筑垃圾定时情况获取
     */
    public enum Template3 implements BaseEnum {

        point("point", "关注点位"),
        unprocessedPoint("unprocessedPoint", "未处理点位"),
        unCleanedPoint("unCleanedPoint", "准备清运点位"),

        ;
        public String code;
        public String message;
        private Template3(String code, String message) {this.code = code;this.message = message;}
        public String getCode() {return code;}
        public String getMessage() {return message;}
    }

    /**
     * 模板消息接口文档
     * https://mp.weixin.qq.com/debug/cgi-bin/readtmpl?t=tmplmsg/faq_tmpl
     */
    public enum TemplateApiCode implements BaseEnum {

        T_1("-1", "系统繁忙"),
        T0("0", "请求成功"),
        T40001("40001", "验证失败"),
        T40002("40002", "不合法的凭证类型"),
        T40003("40003", "不合法的OpenID"),
        T40004("40004", "不合法的媒体文件类型"),
        T40005("40005", "不合法的文件类型"),
        T40006("40006", "不合法的文件大小"),
        T40007("40007", "不合法的媒体文件id"),
        T40008("40008", "不合法的消息类型"),
        T40009("40009", "不合法的图片文件大小"),
        T40010("40010", "不合法的语音文件大小"),
        T40011("40011", "不合法的视频文件大小"),
        T40012("40012", "不合法的缩略图文件大小"),
        T40013("40013", "不合法的APPID"),
        T41001("41001", "缺少access_token参数"),
        T41002("41002", "缺少appid参数"),
        T41003("41003", "缺少refresh_token参数"),
        T41004("41004", "缺少secret参数"),
        T41005("41005", "缺少多媒体文件数据"),
        T41006("41006", "access_token超时"),
        T42001("42001", "需要GET请求"),
        T43002("43002", "需要POST请求"),
        T43003("43003", "需要HTTPS请求"),
        T44001("44001", "多媒体文件为空"),
        T44002("44002", "POST的数据包为空"),
        T44003("44003", "图文消息内容为空"),
        T45001("45001", "多媒体文件大小超过限制"),
        T45002("45002", "消息内容超过限制"),
        T45003("45003", "标题字段超过限制"),
        T45004("45004", "描述字段超过限制"),
        T45005("45005", "链接字段超过限制"),
        T45006("45006", "图片链接字段超过限制"),
        T45007("45007", "语音播放时间超过限制"),
        T45008("45008", "图文消息超过限制"),
        T45009("45009", "接口调用超过限制"),
        T46001("46001", "不存在媒体数据"),
        T47001("47001", "解析JSON/XML内容错误"),

        ;
        public String code;
        public String message;
        private TemplateApiCode(String code, String message) {this.code = code;this.message = message;}
        public String getCode() {return code;}
        public String getMessage() {return message;}
    }
}
